package day03;

/**
逻辑运算符演示
 */
public class OperDemo3 {
    public static void main(String[] args) {
        /**int i = 8, g = 23, h = 4;
        boolean hi = i <= g && h > i;
        boolean hj = g >= h && h <= i;
        System.out.println(hi);//false
        System.out.println(hj);//true
        int is = 10, hd = 3, jh = 7;
        boolean kj = is * 10 <= hd && jh * 10 >= hd;
        System.out.println(kj);//false
        boolean kg=hd<=is&&jh>=hd;
        System.out.println(kg);//ture
         **/
        /**int g=3,h=5,j=6;
        System.out.println(g<h||j>j);//ture
        System.out.println(j>h||g+10>h);//ture
        System.out.println(g>h||j<h);//false
        int hd=32,js=20,jh=12;
        System.out.println(js<hd||js>jh);//ture
        System.out.println(js>hd||jh<js);//ture
        System.out.println(js>hd||js<jh);//false
        int hg=22;
        double hjk=21.5;
        int kj=10;
        System.out.println(hjk>kj||kj>hg);//ture
         **/
        int a=5,b=6,c=5;
        boolean d=a<b&& c++<b;
        System.out.println(d);//ture
        System.out.println(c);//6
        boolean e=b*20<a&&c++<b;//false
        System.out.println(e);
        System.out.println(c);//6
    }
}
